Variance and standard deviation are both measures of how spread out a data set is. They are closely related, but not the same.
Variance measures the average squared deviation from the mean. It gives a general idea of how data points differ from the mean value.
Formula for variance of a sample:
\[ s^2 = \frac{1}{n - 1} \sum_{i=1}^{n} (x_i - \bar{x})^2 \]
Standard deviation is the square root of the variance. It is expressed in the same units as the original data, which makes it easier to interpret.
Formula for standard deviation of a sample:
\[ s = \sqrt{s^2} = \sqrt{ \frac{1}{n - 1} \sum_{i=1}^{n} (x_i - \bar{x})^2 } \]
Variance (sample): =VAR.S(rango) or =VAR.M(rango) (in Spanish)
Standard deviation (sample): =STDEV.S(rango) or =DESVEST.M(rango) (in Spanish)